#include <iostream>
using namespace std;
// template<typename T> or template<class T>
template<typename T>
void myswap(T &a, T &b)
{
	T temp = a;
	a = b;
	b = temp;
}
int main()
{
	int a = 10;
	int b = 20;
	myswap<int>(a,b);
	cout<<a<<endl;
	cout<<b<<endl;
	char c = 'a'>'b'?'a':'b';
	cout<<c<<endl;
	return 0;
}